<%-- 
    Document   : add_student_post
    Created on : Nov 24, 2011, 8:18:50 PM
    Author     : THIENSUHACK
--%>

<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="dktc_ws.Hocky"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    Hocky hk = new Hocky();
    hk.setManamhoc(Integer.parseInt(request.getParameter("manamhoc")));
    hk.setTenhk(request.getParameter("tenhk"));
    hk.setThoigianbatdaudk(request.getParameter("batdaudk"));
    hk.setThoigianketthucdk(request.getParameter("ketthucdk"));
   int result=0;
   DataWS a=new DataWS();
   
result = a.themhocky(hk.getManamhoc(),hk.getTenhk(),hk.getThoigianbatdaudk(),hk.getThoigianketthucdk());
   if(result>0)
             {
       out.print("thanh cong");
       response.sendRedirect("/DKTC/admin/index.jsp?page=list_semester");

   }
   else
       out.print("that bai");
           %>